/* *****************************************************************************

 * Description : BASE64 encoding and decoding

 * Date             : 06-08-21 21:00

 * Author          :  y93823

 * Copryright   : 

********************************************************************************/

#ifndef _ZBASE_64_H_
#define _ZBASE_64_H_

#include <string.h>
#include <stdlib.h>
#include <errno.h>

#define BASE64_PAD64 '='

extern char base64_alphabet[];

extern char base64_suffix_map[256];

static char cmove_bits(unsigned char src, unsigned lnum, unsigned rnum);

char* base64_encode(const char *data);

char* base64_decode(const char *bdata) ;

#endif
